Repository navigation
Security: when no fix can be selected the list says why and what to do next - #410
Merged
Merged
Conversation
…o next On the Security page, a page of fixes that were all in a pull request, or all being worked on by a fix run, showed every checkbox off, the header's too, with the reason only in a tooltip. - When no row on the page can be selected, a strip at the top of the list says why and offers the next step: "All 20 are in pull request #412" with a link to it, "A fix run is working on these" with a link to the run, no fixed version yet, or the count of each reason for a mix. The header checkbox carries the same reason for a pointer and a screen reader. With one selectable row the header works as before. - A row that can't be selected says why in the row itself, without hovering, and a row with a fix run links to the run. - A pull request closed without merging shows who closed it and when, and its fix can be selected again. A finding's page offers Open fix PR again beside the closed pull request. - The docs page for security fixes describes the same. Infrastructure findings have no selection (one button per finding), so nothing changes there.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
On the Security page, a page of fixes that were all in a pull request (or all being worked on by a fix run) showed every checkbox off, the header's too, and the only reason was a tooltip on each row. An admin who had closed the fix pull request to start again could not tell why nothing could be selected or what to do.
This is the dashboard half. The platform half (CoderHelm/coderhelm-platform#661) releases the findings when their pull request closes or their run is cancelled, and sends the new fields this page reads. The page works with older servers: the new fields are optional.
Changes
lg:the "Select all 0 on this page" row is replaced by the strip. With at least one selectable row the header works exactly as before.lib/security.ts:whyNoneSelectable,closedWords,runsHref; the optionalclosed_at,closed_by,closed_by_personon a pull request andticketon a group.Verification
npm run lint,npm run typecheck,npm run check:openapiandnpm run buildpass indashboard/.e2e/security.spec.tsin full: 40 passed, 7 of them new: all in one pull request; all in a fix run; no fixed version, a single row, two pull requests, a mix and the Fixed list; one selectable row keeps the header and a closed pull request's fix is selectable; 390 wide with no sideways scroll; a member sees no selection reasons; a finding's page after a person closed its pull request.